package merchant

type (
	DetailReq struct {
		Id int `form:"id" binding:"required"`
	}

	UpInsertReq struct {
		OpenMerchantId string `form:"open_merchant_id" `
		Name           string `form:"name" binding:"required"`
		Appid          string `form:"appid" binding:"required"`
		Phone          string `form:"phone" binding:"required"`
		ShopId         string `form:"shop_id" binding:"required"`
		MerchantPid    string `form:"merchant_pid" binding:"required"`
		AppAuthToken   string `form:"app_auth_token" binding:"required"`
		ReqCommitAli   int    `form:"req_commit_ali" binding:"required"`
	}

	BindStoreReq struct {
		OpenMerchantId string `form:"open_merchant_id" binding:"required" json:"open_merchant_id"`
		StoreTitle     string `form:"store_title" binding:"required" json:"store_title"`
		Comment        string `form:"comment" json:"comment"`
		OpenAppId      string `form:"open_app_id" json:"open_app_id"`
		Id             int    `form:"id" json:"id"`
		StoreNo        int    `form:"store_no" binding:"required" json:"store_no"`
		MerchantType   int    `form:"merchant_type" json:"merchant_type"`
	}
)

type DetailRep struct {
	Id           uint   `json:"id"`
	Name         string `json:"name"`
	OpenAppId    string `json:"open_app_id"`
	Appid        string `json:"appid"`
	MerchantType int    `json:"merchant_type"`
	MerchantPid  string `json:"merchant_pid"`
	Phone        string `json:"phone"`
	Status       string `json:"status"`
	ShopId       string `json:"shop_id"`
	SaleId       string `json:"sale_id"`
	AppAuthToken string `json:"app_auth_token"`
}
